﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Pixels.ListItems;
using Pixels.Core;
using Pixels.Extensions;

namespace Pixels.Cms.Core
{
    public class List : ListItem, ICommentable, IPublishable, ITaggable
    {
        [PixelContentTypeItem("Title", 50)]
        public override string Title
        {
            get
            {
                return base.Title;
            }
            set
            {
                base.Title = value;
            }
        }

        [PixelContentTypeItem("Summary", 50)]
        public override string Description
        {
            get
            {
                return base.Description;
            }
            set
            {
                base.Description = value;
            }
        }

        [PixelContentTypeItem("AllowComments", 50)]
        public bool AllowComments
        {
            get;
            set;
        }

        [PixelContentTypeItem("Publish", 50)]
        public Publish Publish
        {
            get;
            set;
        }

        [PixelContentTypeItem("Tag", 50)]
        public List<string> Tags
        {
            get;
            set;
        }

        [PixelContentTypeItem("Items", 0)]
        public List<Guid> Items
        {
            get;
            set;
        }
    }
}
